home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD World 1998 January
/
CD World - Ocak 1998.iso
/
misc
/
dbase55
/
disk7
/
samples1.pak
/
FONT.WFM
< prev
next >
Wrap
Text File
|
1995-07-18
|
10KB
|
437 lines
*******************************************************************************
* PROGRAM: Font.wfm
*
* WRITTEN BY: Borland Samples Group
*
* DATE: 1/94
*
* UPDATED: 5/95
*
* REVISION: $Revision: 1.25 $
*
* VERSION: Visual dBASE
*
* DESCRIPTION: This program shows how you can use different fonts to enhance
* your Visual dBASE form controls. Most
* Visual dBASE controls allow font manipulation.
*
* PARAMETERS: None
*
* CALLS: Buttons.cc (Custom Controls file)
*
* USAGE: DO Font.wfm
*
*******************************************************************************
create session
set talk off
set ldCheck off
** END HEADER -- do not remove this line*
* Generated on 05/23/95
*
parameter bModal
local f
f = new FONTFORM()
if (bModal)
f.mdi = .F. && ensure not MDI
f.ReadModal()
else
f.Open()
endif
CLASS FONTFORM OF FORM
Set Procedure to &_dbwinhome.samples\Buttons.cc Additive
this.OnOpen = CLASS::FORM_ONOPEN
this.OnClose = CLASS::FORM_ONCLOSE
this.Left = 14.666
this.Height = 16.7051
this.Minimize = .F.
this.MousePointer = 1
this.Text = "Fonts are Fun!"
this.ColorNormal = "BTNTEXT/BTNFACE"
this.Maximize = .F.
this.Width = 78
this.PageNo = 1
this.TopMost = .F.
this.Top = 0
DEFINE RECTANGLE RECTANGLE1 OF THIS;
PROPERTY;
Height 2.4697,;
Left 0,;
Text "",;
BorderStyle 1,;
ColorNormal "N/W",;
Width 78,;
PageNo 1,;
Border .T.,;
Top 0
DEFINE RECTANGLE RECTANGLE2 OF THIS;
PROPERTY;
Height 12.0225,;
Left 0,;
Text "",;
BorderStyle 1,;
ColorNormal "N/W",;
Width 26,;
PageNo 1,;
Border .T.,;
Top 2.4473
DEFINE RECTANGLE RECTANGLE3 OF THIS;
PROPERTY;
Height 12.0225,;
Left 26,;
Text "",;
BorderStyle 1,;
ColorNormal "N/W",;
Width 26,;
PageNo 1,;
Border .T.,;
Top 2.4473
DEFINE RECTANGLE RECTANGLE4 OF THIS;
PROPERTY;
Height 12.0225,;
Left 52,;
Text "",;
BorderStyle 1,;
ColorNormal "N/W",;
Width 26,;
PageNo 1,;
Border .T.,;
Top 2.4473
DEFINE TEXT TITLETEXT OF THIS;
PROPERTY;
Left 0.5,;
Height 1.6523,;
Text "Visual dBASE Font Samples",;
ColorNormal "R/W",;
Width 77,;
Alignment 4,;
FontName "Times New Roman",;
PageNo 1,;
Border .F.,;
FontSize 18,;
Top 0.2295
DEFINE TEXT TEXT0 OF THIS;
PROPERTY;
Left 0.5,;
Height 1.6133,;
Text "Times New Roman",;
ColorNormal "N/W",;
Width 24.5,;
FontName "Times New Roman",;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 14,;
Top 2.7393
DEFINE TEXT TEXT1 OF THIS;
PROPERTY;
Left 0.5,;
Height 1.3789,;
Text "8 Point",;
ColorNormal "N/W",;
Width 24.5,;
FontName "Times New Roman",;
PageNo 1,;
FontBold .F.,;
Border .F.,;
Top 4.6797
DEFINE TEXT TEXT2 OF THIS;
PROPERTY;
Left 0.5,;
Height 1.3516,;
Text "10 Point Underlined",;
ColorNormal "N/W",;
Width 24.5,;
FontName "Times New Roman",;
PageNo 1,;
FontUnderline .T.,;
FontBold .F.,;
Border .F.,;
FontSize 10,;
Top 6.0596
DEFINE TEXT TEXT3 OF THIS;
PROPERTY;
Left 0.5,;
Height 1.3682,;
Text "12 Point Italic",;
ColorNormal "N/W",;
Width 24.5,;
FontItalic .T.,;
FontName "Times New Roman",;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 12,;
Top 7.4297
DEFINE TEXT TEXT4 OF THIS;
PROPERTY;
Left 0.5,;
Height 1.6094,;
Text "16 Point Bold",;
ColorNormal "N/W",;
Width 24.5,;
FontName "Times New Roman",;
PageNo 1,;
Border .F.,;
FontSize 16,;
Top 9.0293
DEFINE TEXT TEXT5 OF THIS;
PROPERTY;
Left 0.5,;
Height 3.2842,;
Text "30 Point",;
ColorNormal "N/W",;
Width 24.5,;
FontName "Times New Roman",;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 30,;
Top 11.0098
DEFINE TEXT TEXT6 OF THIS;
PROPERTY;
Left 26.8887,;
Height 1.3574,;
Text "Arial",;
ColorNormal "N/W",;
Width 24.4443,;
FontName "Arial",;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 14,;
Top 2.7598
DEFINE TEXT TEXT7 OF THIS;
PROPERTY;
Left 26.8887,;
Height 1.0664,;
Text "8 Point",;
ColorNormal "N/W",;
Width 24.4443,;
FontName "Arial",;
PageNo 1,;
FontBold .F.,;
Border .F.,;
Top 4.6387
DEFINE TEXT TEXT8 OF THIS;
PROPERTY;
Left 26.8887,;
Height 1.3516,;
Text "10 Point Underlined",;
ColorNormal "N/W",;
Width 24.4443,;
FontName "Arial",;
PageNo 1,;
FontUnderline .T.,;
FontBold .F.,;
Border .F.,;
FontSize 10,;
Top 6.0596
DEFINE TEXT TEXT9 OF THIS;
PROPERTY;
Left 26.8887,;
Height 1.3682,;
Text "12 Point Italic",;
ColorNormal "N/W",;
Width 24.4443,;
FontItalic .T.,;
FontName "Arial",;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 12,;
Top 7.4297
DEFINE TEXT TEXT10 OF THIS;
PROPERTY;
Left 26.8887,;
Height 1.6094,;
Text "16 Point Bold",;
ColorNormal "N/W",;
Width 24.4443,;
FontName "Arial",;
PageNo 1,;
Border .F.,;
FontSize 16,;
Top 9.0293
DEFINE TEXT TEXT11 OF THIS;
PROPERTY;
Left 26.8887,;
Height 2.7549,;
Text "30 Point",;
ColorNormal "N/W",;
Width 24.4443,;
FontName "Arial",;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 30,;
Top 11.0098
DEFINE TEXT TEXT12 OF THIS;
PROPERTY;
Left 53.2891,;
Height 1.9453,;
Text "MS Sans Serif",;
ColorNormal "N/W",;
Width 24.5439,;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 14,;
Top 2.7598
DEFINE TEXT TEXT13 OF THIS;
PROPERTY;
Left 53.2891,;
Height 1.3789,;
Text "8 Point",;
ColorNormal "N/W",;
Width 24.5439,;
PageNo 1,;
FontBold .F.,;
Border .F.,;
Top 4.6797
DEFINE TEXT TEXT14 OF THIS;
PROPERTY;
Left 53.2891,;
Height 1.6455,;
Text "10 Point Underlined",;
ColorNormal "N/W",;
Width 24.5439,;
PageNo 1,;
FontUnderline .T.,;
FontBold .F.,;
Border .F.,;
FontSize 10,;
Top 6.0596
DEFINE TEXT TEXT15 OF THIS;
PROPERTY;
Left 53.2891,;
Height 1.6592,;
Text "12 Point Italic",;
ColorNormal "N/W",;
Width 24.5439,;
FontItalic .T.,;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 12,;
Top 7.4297
DEFINE TEXT TEXT16 OF THIS;
PROPERTY;
Left 53.2891,;
Height 1.8975,;
Text "16 Point Bold",;
ColorNormal "N/W",;
Width 24.5439,;
PageNo 1,;
Border .F.,;
FontSize 16,;
Top 9.0293
DEFINE TEXT TEXT17 OF THIS;
PROPERTY;
Left 53.2891,;
Height 2.7549,;
Text "30 Point",;
ColorNormal "N/W",;
Width 24.5439,;
PageNo 1,;
FontBold .F.,;
Border .F.,;
FontSize 30,;
Top 11.0098
DEFINE ENTRYFIELD ENTRYFIELD1 OF THIS;
PROPERTY;
Left 0,;
Height 1.5293,;
ColorNormal "N/W",;
Picture "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",;
Width 61.666,;
Value "Edit Me...",;
FontName "Times New Roman",;
PageNo 1,;
FontBold .F.,;
Border .T.,;
ColorHighLight "WindowText/Window",;
FontSize 14,;
Top 15
DEFINE PUSHBUTTON OKBUTTON OF THIS;
PROPERTY;
Left 63,;
Height 1.5293,;
Text "OK",;
ColorNormal "",;
Width 15.166,;
OnClick {;form.Close()},;
FontName "Arial",;
Default .T.,;
PageNo 1,;
Group .T.,;
FontSize 18,;
Top 15
DEFINE SAMPLEINFOBUTTON FONTINFOBUTTON OF THIS;
PROPERTY;
Left 74.1992,;
Height 1.1943,;
Width 3.6338,;
Group .T.,;
Top 0.0996
****************************************************************************
Procedure Form_OnOpen
****************************************************************************
form.fontInfoButton.sampleName = "Font.wfm"
****************************************************************************
Procedure Form_OnClose
****************************************************************************
close procedure &_dbwinhome.samples\Buttons.cc
ENDCLASS